package com.zzs.elm.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.zzs.elm.po.Food;
import com.zzs.elm.service.FoodService;

public class FoodController {
	
	private FoodService foodService = new FoodService();
	public List<Food> listFoodByBusinessId (HttpServletRequest request) throws Exception {
		Integer businessId = Integer.valueOf(request.getParameter("businessId"));
		String userId = request.getParameter("userId");
		List<Food> list = foodService.listFoodByBusinessId(businessId, userId);
		return list;
	}
}
